Launch New Browser
Command Prototype
hWeb = WebBrowser.Create(sType,sURL,iTimeOut,optionArgs)
Command Description
Launch a new browser, so that Redot.ai can operate this browser. The launched browser can be IE, Chrome, FireFox. The function will return a string for bound browser's handle if it runs successfully, and return null if failed
Parameter Description
- Required Parameter
- sType--Type of Browser
- sURL--The link address that opens when the browser is launched
- iTimeOut--Specify the time (in milliseconds) to wait for an activity to run before SelectorNotFoundException throws an error. The default is 10000 milliseconds (10 seconds)
- Optional Parameter
- bContinueOnError--Specify whether automation should continue if the activity throws an error. This field only supports Boolean values (True, False). The default is False
- iDelayAfter--The delay in milliseconds after the activity is executed. The default is 300 milliseconds
- iDelayBefore--The delay in milliseconds before the activity starts any operation. The default is 200 milliseconds
- sBrowserPath--Browser directory, the default is an empty string. When the value is an empty string, it will automatically search for browsers installed on the machine and try launching
- sStartArgs--Browser's launch parameters
- return
- hWeb--The variable used to save the output of the function call